home *** CD-ROM | disk | FTP | other *** search
- -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C)
- -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
- --
- class TEST_READ_CHARACTER
-
- creation {ANY}
- make
-
- feature {ANY}
-
- i: INTEGER;
- path: STRING;
- sfr: STD_FILE_READ;
-
- make is
- do
- path := get_environment_variable("SmallEiffel");
- path.append("/lib_test/test_read_character.e");
- from
- i := 0;
- !!sfr.connect_to(path);
- if not sfr.is_connected then
- std_output.put_string("ERROR in TEST_READ_CHARACTER.%N");
- end;
- until
- sfr.end_of_input
- loop
- sfr.read_character;
- i := i + 1;
- end;
- if i - 1 = size then
- else
- std_output.put_string("ERROR in TEST_READ_CHARACTER.%N");
- std_output.put_string("File %"");
- std_output.put_string(path);
- std_output.put_string("%" has changed%Nor it is a bug (");
- std_output.put_integer(size);
- std_output.put_string(" /= ");
- std_output.put_integer(i);
- std_output.put_string(")%N.");
- end;
- end;
-
- size: INTEGER is 1072;
-
- end -- TEST_READ_CHARACTER
-